package com.example.aitoedu.mapper;

import com.example.aitoedu.entity.TsTalk;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 曹正豪
* @description 针对表【ts_talk(学生和老师对话内容信息)】的数据库操作Mapper
* @createDate 2024-12-27 20:50:56
* @Entity generator.domain.TsTalk
*/
public interface TsTalkMapper extends BaseMapper<TsTalk> {

    List<TsTalk> allConversation(Long id);

    List<TsTalk> selectByTwoId(@Param("myId") Long myId, @Param("id") Long id);

    void setRead(@Param("myId") Long myId, @Param("id") Long id);
}




